export default[
    {
        path:'/admin',
        component: require('../views/backend/Main').default,
        //beforeEnter: requireAuth,
        onError: (err) => {
            console.log(err);
        },
        children: [
            /*
            {
                path: '/',
                component: require('../views/backend/Index').default,
                children:[
                    {
                        path:'timeline',
                        components:{
                            default:() => import('../views/home/TimeLine'),
                            sidebar:() => import('../views/home/Sidebar')
                        }
                                                  
                    },
                ]
            },
            */
            {
                path:'user',
                component: () => import('../views/backend/Index'),
                children:[
                    {
                        path:'/',
                        components:{
                            default:() => import('../views/backend/user/List'),
                        }
                    },

                    {
                        path:'list',
                        components:{
                            default:() => import('../views/backend/user/List'),
                        }
                    },
                    {
                        path:'viplist',
                        components:{
                            default:() => import('../views/backend/user/Viplist'),
                        }
                                            
                    },
                    {
                        path:'role',
                        components:{
                            default:() => import('../views/backend/user/Role'),
                        }
                                            
                    },
                ]
            },

            {
                path:'article',
                component: () => import('../views/backend/Index'),
                children:[
                    {
                        path:'index',
                        components:{
                            default:() => import('../views/backend/article/Index'),
                        }
                    },
                    {
                        path:'category',
                        components:{
                            default:() => import('../views/backend/article/Category'),
                        }
                    },

                    {
                        path:'tag',
                        components:{
                            default:() => import('../views/backend/article/Tag'),
                        }
                    },
                    {
                        path:'comment',
                        components:{
                            default:() => import('../views/backend/article/Comment'),
                        }
                                            
                    },

                ]
            },

            {
                path:'report',
                component: () => import('../views/backend/report/Index'),
                children:[
                    {
                        path:'import',
                        components:{
                            default:() => import('../views/backend/report/Import'),
                        }
                    },
                    {
                        path:'export',
                        components:{
                            default:() => import('../views/backend/report/Export'),
                        }
                    },

                    {
                        path:'about',
                        components:{
                            default:() => import('../views/backend/report/About'),
                        }
                    },

                ]
            },



        ],
    },
    
]